home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / DEF / Utilities / Lengths / expand-with-len < prev    next >
Text File  |  1998-10-23  |  704b  |  12 lines

  1. expand-with-len symbols lengths zone min-len
  2.  
  3. Expands the symbol pattern so that the number of symbols match the length pattern for the period of a zone with the quantisation of min-len. This is useful if you have two symbol patterns with different length values and want to align them to equal time base, where you can operate them, and then use compress-with-len to squeeze them back to normal.
  4.  
  5. (expand-with-len '(a b c d) '(1/16. 1/8) '1/1 '1/32)
  6. --> (a a a b b b b c c c d d d d a a a b b b b c c c d d d d a a a b b b b)
  7.  
  8. (compress-with-len '(a a a b b b b c c c d d d d a a a b b b b c c c d d d d a a a b b b b)
  9.                    '(1/16. 1/8)
  10.                    '1/32)
  11. --> (a b c d a b c d a b)
  12.